package org.enlongWu.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.enlongWu.pojo.MessageType;
import org.enlongWu.pojo.Role;

import java.util.List;

@Mapper
public interface MessageTypeMapper {

    //.....................改成by role。。。。。。好像没用到
    @Select("select * from roles where rolename=#{rolename}")
    Role findByRoleName(String rolename);

    //
    List<MessageType> list();

}
